package com.signavio.analytics.business;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class ExampleAccessHelper extends AbstractAnalyticsDataAccessHelper {

	public Long getNrOfInstances(Set<Long> selectedModelInstanceIds) {
		Map<String,Object> args = new HashMap<String, Object>();
		args.put("selectedInstanceIds", selectedModelInstanceIds);
		Object result = dbHelper.executeNamedQuery("Example.getNrOfModelInstances", args).get(0);
		return (Long)result;
	}

}
